package io;

public class BufferedImageStudy {

    public static void main(String[] args) {
        //生成图片验证码
        // BufferedImage bufferedImage = new BufferedImage(10,10,10);
        // BufferedImageGraphicsConfig config = BufferedImageGraphicsConfig.getConfig(bufferedImage);
        // bufferedImage =config.createCompatibleImage(10, 10, Transparency.TRANSLUCENT);
        // try (
        //         OutputStream out = new BufferedOutputStream(bufferedImage)
        // ) {
        //     ImageIO.write(bufferedImage, "JPEG", out);
        // }
        //
    }
}
